package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    void addBed(Bed bed);

    Bed getBedById(Long id);

    void modifyBed(Bed bed);

    int deleteBedById(Long id);

    Bed getBedByBedNumber(String bedNumber);

    Long countDiffBedNumber(@Param("bedNumber") String bedNumber,@Param("id") Long id);
}

